home *** CD-ROM | disk | FTP | other *** search
/ Just Call Me Internet / Just Call Me Internet.iso / com / computer / casio_st / prog_fx / oisac2 / l_5725.txt < prev    next >
Text File  |  1994-03-01  |  514b  |  13 lines

  1. 5 ONERRORGOTO900
  2. 20 MODE8:DIM:r=0:s=0:h=0:c$=CHR$(5)
  3. 30 CLS:PRINT"ãh(rý+rR+Rý)/3      r:R:radius";
  4. 40 s$="r":z=r:GOSUB500:r=z
  5. 41 s$="R":z=s:GOSUB500:s=z
  6. 42 CLS:PRINT"ãh(rý+rR+Rý)/3      h:height";
  7. 43 s$="h":z=h:GOSUB500:h=z
  8. 50 LOCATE0,1:PRINTc$;"Volume =";PI*h*(s^2+s*r+r^2)/3;:z$=INPUT$(1,@):GOTO30
  9. 500 LOCATE0,1:PRINTc$;s$;"=";z;"?";:INPUT@42;z:LOCATE0,0:IFz<0 THEN500 ELSERETURN
  10. 900 IFERR=1 THENCLS:ONERRORGOTO0
  11. 910 IFERL=500 THENRESUME500
  12. 930 LOCATE0,1:PRINTc$;"not found";:z$=INPUT$(1,@):RESUME30
  13.